#pragma once
#include "stdafx.h"

#import "C:\Program Files\Common Files\System\ADO\msado15.dll" \
	no_namespace rename("EOF", "EndOfFile")

class CAdoPtr
{
public:
	CAdoPtr(void);
	~CAdoPtr(void);

	void InitAdoConnection( _bstr_t strConnect, char* user, char* pwd );
	_RecordsetPtr& GetRecordSet( _bstr_t bStrSql );
	bool Execute( _bstr_t bstrSql );
	void ExitConnect();

private:
	_ConnectionPtr		m_pCon;
	_RecordsetPtr		m_pRecord;
};
